<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:pe="http://primefaces.org/ui/extensions" >
<h:head>
	<title>Employee Detail</title>
</h:head>
<h:body>
	<h:link value="PERSONAL HOME" outcome="index" />
 	<h:form id="form">
	<p:growl id="growl" />
	
	<p:panel id="panelEmployee" header="Employee detail">  
        <h:panelGrid columns="2">
			<h:outputLabel value="Name: "></h:outputLabel>
			<h:outputLabel value="#{detailEmployee.employee.name}" />
			
			<h:outputLabel value="Surname: "></h:outputLabel>
			<h:outputLabel value="#{detailEmployee.employee.surname}" />
				
			<h:outputLabel value="Email: "></h:outputLabel>
			<h:outputLabel value="#{detailEmployee.employee.email}" />
			
			<h:outputLabel value="Registration: "></h:outputLabel>
			<h:outputText value="#{detailEmployee.employee.registration}" >
        		<f:convertDateTime pattern="dd/MM/yyyy HH:mm" timeZone="GMT+1"/>
        	</h:outputText>
		</h:panelGrid>
			
		<p:commandButton id="buttonDeleteEmployee" update="growl" value="Delete employee"
			action="#{detailEmployee.deleteEmployee()}" />
	</p:panel>
	</h:form>
</h:body>
</html>